package com.shop2cn.app.liveseller.service;

import com.shop2cn.app.liveseller.parameter.*;
import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.EnvSetup;
/**
*直播活动卡片
*FreeMaker Template自动生成代码
*/
public class ActivityProductCardCall extends YmatouBaseCall{
	private static String opurl ="api/live/ActivityProductCard";
	
	public ActivityProductCardCall() {
		super(EnvSetup.getSystemUrl("liveseller_app"),opurl,"GET","PARAM");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	public ActivityProductCardResponse getData()
    {
		ActivityProductCardResponse data = null;
        try {
        	String rdata=getJsonObject().get("Data").toString();
        	data=(ActivityProductCardResponse) FormatUtil.GSONToObject(rdata, ActivityProductCardResponse.class);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return data;
    }
}